Part Number Hot Search : 
3709ZC BV55C 8085A P3010 IR2011 160A1 PT6721C2 XFPNB
Product Description
Full Text Search
 

To Download 32F0-TOUCH-LIB Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  for further information contact your local stmicroelectronics sales office. february 2014 docid023933 rev 4 1/59 xxxx-touch-lib stmtouch library data brief features ? complete free c sour ce code library with firmware examples for stm8l, stm8tl5x, stm32f0xx, stm32f3xx and stm32l1xx microcontrollers ? both surface charge transfer (ct) and proxsense tm (pxs) acquisit ion principles supported ? multifunction capability to combine capacitive sensing functions with tr aditional mcu features ? modular architecture allowing easy addition of new acquisitions or sensors ? acquisition, filtering and calibration functions ? enhanced processing features for optimized sensitivity and immunity ? environment control system (ecs) ? detection time out (dto) ? detection exclusion system (dxs) ? noise filter ? flexible touchkey/linear/rotary touch sensors configuration and combination ? unlimited number of sensors supported ? each sensor can have its own state machine ? active shield feature ? compliant with misra ? compliant with cosmic, ia r, raisonance, keil, altium and atollic c compilers description stmicroelectronics touch-sensing libraries provide a complete robust free source-code solution to be used on stm8l, stm8tl5x, stm32f0xx, stm32f3xx and stm32l1xx microcontrollers. this solution allows designers familiar with the use of st andard microcontrollers to create higher-end human interfaces by replacing conventional electromechanical switches by capacitive sensors. the xxxx-touch-lib is part of the application firmware. it allows comb ining various capacitive sensing touchkeys, linear or rotary touch sensors with traditional mcu features (communications, control of leds, beeper or lcd) in the same application. two capacitive acquisition principles, surface charge transfer (ct) and proxsense tm , are available and can be co nfigured at compiling level. both acquisition pr inciples offer the same advanced processing algori thms to filter out noise and to compensate environmental parameters such as temperature, humidity, and power supply variation. note: proxsense is a trademark of azoteq (pty) ltd. table 1. device summary reference part number xxxx-touch-lib stm8l-touch-lib stm8tl-touch-lib 32F0-TOUCH-LIB 32f3-touch-lib 32l1-touch-lib www.st.com
contents xxxx-touch-lib 2/59 docid023933 rev 4 contents 1 proxsense (pxs) acquisition principle . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 surface charge transfer (ct) acquisition principle . . . . . . . . . . . . . . . . 5 3 stmtouch library architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4 mcu resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5 touch-sensing channels availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5.1 stm8l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5.1.1 stm8l features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5.1.2 stm8l available touch-sensing channels . . . . . . . . . . . . . . . . . . . . . . . 10 5.2 stm8tl5x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.2.1 stm8tl5x features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.2.2 stm8tl5x available touch-sensing channels . . . . . . . . . . . . . . . . . . . . 18 5.3 stm32f0xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3.1 stm32f0xx features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.3.2 stm32f0xx available touch-sensing chan nels . . . . . . . . . . . . . . . . . . . 22 5.4 stm32f3xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.4.1 stm32f3xx features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.4.2 stm32f3xx available touch-sensing chan nels . . . . . . . . . . . . . . . . . . . 28 5.5 stm32l1xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.5.1 stm32l1xx features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.5.2 stm32l1xx available touch-sensing channels . . . . . . . . . . . . . . . . . . . 35 6 memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1 stm8l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.2 stm8tl5x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.3 stm32f0xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.4 stm32f3xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.5 stm32l1xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 7 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
docid023933 rev 4 3/59 xxxx-touch-lib list of tables 3 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. list of peripherals used by the stmtouch driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 3. available touch-sensing channels for stm8l101. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 4. available touch-sensing channels for stm8l15x / stm8l16x (table 1/2) . . . . . . . . . . . . . 12 table 5. available touch-sensing channels for stm8l15x / stm8l16x (table 2/2) . . . . . . . . . . . . . 14 table 6. available touch-sensing channels for stm8tl5x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 7. available touch sensing channels for stm32f042. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 8. available touch sensing channels for stm32f 051 and stm32f072 . . . . . . . . . . . . . . . . . 25 table 9. available touch sensing channels for stm32f30x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 10. available touch sensing channels for stm32f37x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 11. available touch sensing channels for stm32l1xx 5 12k . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 12. available touch sensing channels for stm32l1xx 3 84k . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 13. available touch sensing channels for stm32l1xx 256k (table 1/2). . . . . . . . . . . . . . . . . . 44 table 14. available touch sensing channels for stm32l1xx 256k (table 2/2). . . . . . . . . . . . . . . . . . 48 table 15. available touch sensing channels for stm32l15x 32k to 128k . . . . . . . . . . . . . . . . . . . . 51 table 16. stm8l101 memory footprint with software acquisit ion mode . . . . . . . . . . . . . . . . . . . . . . 54 table 17. stm8l15x memory footprint with hardware acquis ition mode . . . . . . . . . . . . . . . . . . . . . . 54 table 18. stm8l15x memory footprint with software acquisit ion mode. . . . . . . . . . . . . . . . . . . . . . . 54 table 19. stm8tl5x memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 20. stm32f0xx memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 21. stm32f30x memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 22. stm32f37x memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 23. stm32l1xx memory footprint, example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 24. stm32l1xx memory footprint, example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 25. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
list of figures xxxx-touch-lib 4/59 docid023933 rev 4 list of figures figure 1. stmtouch driver architecture 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 figure 2. stmtouch driver architecture 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
docid023933 rev 4 5/59 xxxx-touch-lib proxsense (pxs) acquisition principle 58 1 proxsense (pxs) acquisition principle this peripheral operates in projected mo de which is used to measure the charge transferred by a driven electrode to a second electrode. this acquisition principle is only available on stm8tl5x devices. for more information see the stm8tl5x reference manual (rm0312). 2 surface charge transfer (ct) acquisition principle the surface charge transfer acquisition consis ts in charging the electrode capacitance (c x ) and transferring part of the accumulated charge into a sampling capacitor (c s ). this sequence is repeated until the voltage across c s reaches a given threshold. the number of transfers required to reach the threshold depe nds on the size of the electrode capacitance. the ct acquisition can be managed in three different ways: ? using the touch sensing controller (tsc ) on stm32f0xx and stm32f3xx devices ? using the routing interface (ri) only for stm8l and stm32l1xx devices with software acquisition ? using the routing interface (ri) and two 16-bits timers for stm8l and stm32l1xx devices with hardwa re acquisition. please see the table 2 for more details about the peripherals used.
stmtouch library arch itecture xxxx-touch-lib 6/59 docid023933 rev 4 3 stmtouch library architecture the stmtouch library is a ?package ? composed of different elements: ? the ?stmtouch driver? directory contains the firmware layer to perform the touch- sensing acquisition and the sensors proc essing. this driver contains all the acquisitions for all supported microcontrollers. this is the core of the stmtouch library ? the ?stmtouch examples? directory contains a set of firmware examples to show how to use the stmtouch driver ? the ? standard peripherals driver? directory contains the firm ware layer to access the standard peripherals ? the ?cmsis driver? directory contains the cortex mi crocontroller software interface standard (stm32 only) ? the ?utilities drivers? directory contains the drivers to access for example the lcd on the evaluation boards. note: there is one stmtouch library per microcontroller family (stm8l stmtouch library, stm8tl5x stmtouch library, stm32f0xx stmtouch library, stm32f3xx stmtouch library, stm32l1xx stmtouch library...). figure 1 and figure 2 show the stmtouch driver layers. figure 1. stmtouch driver architecture 1 069 8vhudssolfdwlrqh[dpsohv 6707rxfkgulyhu 6wdqgdugshulskhudovoleudu\ 0&8 +dugzduh /d\hu +dugzduh $evwudfwlrq od\hu +$/ $ssolfdwlrq od\hu
docid023933 rev 4 7/59 xxxx-touch-lib stmtouch library architecture 58 figure 2. stmtouch driver architecture 2 069 6707rxfkgulyhu frqiljxudwlrq $ftxlvlwlrq 0&8 $ftxlvlwlrq od\hu 6707rxfk gulyhu $ssolfdwlrq od\hu $ftxlvlwlrq 0&8  7rxfk.h\ vhqvru /lqhdudqg urwdu\vhqvruv  (&6 )lowhuv  '72 '[6 7lplqj 8vhudssolfdwlrq 3urfhvvlqj od\hu 6wdqgdugshulskhudov oleudu\
mcu resources xxxx-touch-lib 8/59 docid023933 rev 4 4 mcu resources table 2 shows the peripherals that are used by the stmtouch driver. care must be taken when using them to avoid any unwanted behavior. table 2. list of peripherals used by the stmtouch driver device / acquisition principle peripheral function stm8l ct software stm8l ct hardware stm8tl5x pxs stm32f0xx ct stm32f3xx ct stm32l1xx ct software stm32l1xx ct hardware gpios acquisition yes yes yes yes yes yes yes 8-bit timer (tim4) time base for ecs and dto yes yes yes no no no no systick time base for ecs and dto no no no yes yes yes yes routing interface (ri) acquisition yes yes no no no yes yes proxsense (pxs) acquisition no no yes no no no no touch-sensing controller (tsc) acquisition no no no yes yes no no 2 x 16-bit timers acquisition no yes (tim2 and tim3) no no no no yes (tim9 and tim11)
docid023933 rev 4 9/59 xxxx-touch-lib touch-sensing channels availability 58 5 touch-sensing channels availability 5.1 stm8l 5.1.1 stm8l features ? proven and robust surface charge transfer acquisition principle ? supports up to 20 capacitive sensing channels ? up to 8 capacitive sensing channels can be acquired in parallel offering a very good response time ? hardware and software managements of the charge transfer acquisition sequence ? programmable charge transfer frequency (for hardware management only) ? programmable sampling capacitor i/o pin ? programmable channel i/o pin ? programmable max count value to avoid long acquisition when a channel is faulty ? dedicated end of acquisition flag with interrupt capability ? one sampling capacitor for up to 4 capaciti ve sensing channels to reduce the system components ? compatible with proximity, touchkey, linear and rotary touch sensor implementation
touch-sensing channels availability xxxx-touch-lib 10/59 docid023933 rev 4 5.1.2 stm8l available touch-sensing channels the tables below provide an overview of th e available touch sensing channels for the stm8l devices. pin usage: ? for n available pins in an i/o group, one pi n is used as sampling capacitor and n-1 pins are used as channels. ? the i/o group cannot be used if the number of available pins in less or equal to one. note1: the following tables are not restrictive in term of part numbers supported by the stmtouch driver. the stmtouch driver can be used on any new device that may become available as part of st microcontrollers portfolio. please contact your st representative for support. note2: for n available pins in an i/o group, one pi n is used as sampling capacitor and n-1 pins are used as channels. the i/o group cannot be used if the number of available pins in less or equal to one.
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 11/59 table 3. available touch-sensing channels for stm8l101 subfamily stm8l101 packages tssop20 / ufqfpn20 ufqfpn28 ufqfpn32 / lqfp32 part numbers stm8l101f[23]u stm8l101g[23]u stm8l101k3[ut] stm8l101f[23]p analog i/o group gx_ioy gpio pin tssop pin ufqfpn number of available pins usage pin number of available pins usage pin number of available pins usage group1 g1_io1 pb0 10 7 3 2 channels with 1 sampling capacitor 12 4 3 channels with 1 sampling capacitor 13 4 3 channels with 1 sampling capacitor g1_io2 pb1 11 8 13 14 g1_io3 pd0 9 6 8 9 g1_io4 pd1 - - 9 10 group2 g2_io1 pb2 12 9 2 1 channel with 1 sampling capacitor 14 4 3 channels with 1 sampling capacitor 15 4 3 channels with 1 sampling capacitor g2_io2 pb3 13 10 15 16 g2_io3 pd2 - - 10 11 g2_io4 pd3 - - 11 12 maximum number of channels 3 with 2 sampling capacitors 6 with 2 sampling capacitors 6 with 2 sampling capacitors
touch-sensing channels availability xxxx-touch-lib 12/59 docid023933 rev 4 table 4. available touch-sensing channels for stm8l15x / stm8l16x (table 1/2) subfamily stm8l151f stm8l151g stm8l151k packages ufqfpn20 / tssop20 ufqfpn28 / wlcsp28 ufqfpn32 / lqfp32 part numbers stm8l151f[23]u (1) (ufqfpn) stm8l151g[346]u (1) (ufqfpn) stm8l152k[46][ut] stm8l151f[23]p (1) (tssop) stm8l151g[46]y (wlcsp) analog i/o group gx_ioy gpio pin pin number of available pins usage pin pin number of available pins usage pin number of available pins usage group 1 g1_io1 pa6 - - 0 cannot be used for touch sensing -- 2 1 channel with 1 sampling capacitor 6 3 2 channels with 1 sampling capacitor g1_io2 pa5 - - 5 d4 5 g1_io3 pa4 - - 4 d3 4 g1_io4 pa7 - - - - - group 2 g2_io1 pc7 - - 1 cannot be used for touch sensing -- 2 1 channel with 1 sampling capacitor - 2 1 channel with 1 sampling capacitor g2_io2 pc4 17 20 25 c2 29 g2_io3 pc3 - - 24 a2 28 g2_io4 pe7 - - - - - group 3 g3_io1 pc2 - - 0 cannot be used for touch sensing 23 b2 1 cannot be used for touch sensing 27 3 2 channels with 1 sampling capacitor g3_io2 pd7 - - - - 24 g3_io3 pd6 - - - - 23 group 4 g4_io1 pd5 - - 1 cannot be used for touch sensing -- 2 1 channel with 1 sampling capacitor 22 3 2 channels with 1 sampling capacitor g4_io2 pd4 - - 20 c1 21 g4_io3 pb7 14 17 19 e1 20
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 13/59 group 5 g5_io1 pb6 13 16 3 2 channels with1 sampling capacitor 18 f1 3 2 channels with 1 sampling capacitor 19 3 2 channels with 1 sampling capacitor g5_io2 pb5 12 15 17 d1 18 g5_io3 pb4 11 14 16 d2 17 group 6 g6_io1 pb3 10 13 3 2 channels with 1 sampling capacitor 15 e2 3 2 channels with 1 sampling capacitor 16 3 2 channels with 1 sampling capacitor g6_io2 pb2 9 12 14 f2 15 g6_io3 pb1 8 11 13 g1 14 group 7 g7_io1 pb0 7 10 1 cannot be used for touch sensing 12 e3 3 2 channels with 1 sampling capacitor 13 3 2 channels with 1 sampling capacitor g7_io2 pd3 - - 11 f3 12 g7_io3 pd2 - - 10 e4 11 g7_io4 pe3 - - - - - group 8 g8_io1 pd1 - - 1 cannot be used for touch sensing 9g2 2 1 channel with 1 sampling capacitor 10 1 cannot be used for touch sensing g8_io2 pd0 6 9 8 g3 - g8_io3 pe5 - - - - - g8_io4 pe4 - - - - - maximum number of channels 4 channels with 2 sampling capacitors 10 channels with 7 sampling capacitors 13 channels with 7 sampling capacitors 1. the product has an hardware accele ration cell for touch sensing. table 4. available touch-sensing channels fo r stm8l15x / stm8l16x (table 1/2) (continued) subfamily stm8l151f stm8l151g stm8l151k packages ufqfpn20 / tssop20 ufqfpn28 / wlcsp28 ufqfpn32 / lqfp32 part numbers stm8l151f[23]u (1) (ufqfpn) stm8l151g[346]u (1) (ufqfpn) stm8l152k[46][ut] stm8l151f[23]p (1) (tssop) stm8l151g[46]y (wlcsp) analog i/o group gx_ioy gpio pin pin number of available pins usage pin pin number of available pins usage pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 14/59 docid023933 rev 4 table 5. available touch-sensing channels for stm8l15x / stm8l16x (table 2/2) subfamily stm8l151k stm8l151c medium/medium+/high density stm8l151r/m stm8l152c/r/m stm8l162r/m stm8l151c low density packages ufqfpn32 / lqfp32 ufqfpn48 / lqfp48 / lqfp64 / lqfp80 lqfp48 part numbers stm8l151k3u (1) stm8l151k[46][ut] stm8l151c[468][ut] stm8l152c[468][ut] (48 pins) stm8l151c3t (1) stm8l151r[68]t stm8l152r[68]t stm8l162r8t (64 pins) stm8l151m8t stm8l152m8t stm8l162m8t (80 pins) analog i/o group gx_ioy gpio pin number of available pins usage pin pin pin number of available pins usage pin number of available pins usage group 1 g1_io1 pa6 6 3 2 channels with 1 sampling capacitor 7711 3 2 channels with 1 sampling capacitor 7 4 3 channels with 1 sampling capacitor g1_io2 pa5 5 6 6 10 6 g1_io3 pa4 4 5 5 9 5 g1_io4 pa7 - (2) (2) (2) 8 group 2 g2_io1 pc7 - 2 1 channel with 1 sampling capacitor 46 62 74 3 2 channels with 1 sampling capacitor 46 4 3 channels with 1 sampling capacitor g2_io2 pc4 29 43 59 71 43 g2_io3 pc3 28 42 58 70 42 g2_io4 pe7 - (2) (2) (2) 48
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 15/59 group 3 g3_io1 pc2 27 3 2 channels with 1 sampling capacitor 41 57 69 3 2 channels with 1 sampling capacitor 41 3 1 channel with 1 sampling capacitor g3_io2 pd7 24 36 48 60 36 g3_io3 pd6 23 35 47 59 35 group 4 g4_io1 pd5 22 3 2 channels with 1 sampling capacitor 34 46 58 3 2 channels with 1 sampling capacitor 34 3 2 channels with 1 sampling capacitor g4_io2 pd4 21 33 45 57 33 g4_io3 pb7 20 31 38 46 31 group 5 g5_io1 pb6 19 3 2 channels with 1 sampling capacitor 30 37 45 3 2 channels with 1 sampling capacitor 30 3 2 channels with 1 sampling capacitor g5_io2 pb5 18 29 36 44 29 g5_io3 pb4 17 28 35 43 28 table 5. available touch-sensing channels fo r stm8l15x / stm8l16x (table 2/2) (continued) subfamily stm8l151k stm8l151c medium/medium+/high density stm8l151r/m stm8l152c/r/m stm8l162r/m stm8l151c low density packages ufqfpn32 / lqfp32 ufqfpn48 / lqfp48 / lqfp64 / lqfp80 lqfp48 part numbers stm8l151k3u (1) stm8l151k[46][ut] stm8l151c[468][ut] stm8l152c[468][ut] (48 pins) stm8l151c3t (1) stm8l151r[68]t stm8l152r[68]t stm8l162r8t (64 pins) stm8l151m8t stm8l152m8t stm8l162m8t (80 pins) analog i/o group gx_ioy gpio pin number of available pins usage pin pin pin number of available pins usage pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 16/59 docid023933 rev 4 group 6 g6_io1 pb3 16 3 2 channels with 1 sampling capacitor 27 34 42 3 2 channels with 1 sampling capacitor 27 3 2 channels with 1 sampling capacitor g6_io2 pb2 15 26 33 41 26 g6_io3 pb1 14 25 32 40 25 group 7 g7_io1 pb0 13 3 2 channels with 1 sampling capacitor 24 31 39 3 2 channels with 1 sampling capacitor 24 4 3 channels with 1 sampling capacitor g7_io2 pd3 12 23 28 32 23 g7_io3 pd2 11 22 27 31 22 g7_io4 pe3 - (2) (2) (2) 17 table 5. available touch-sensing channels fo r stm8l15x / stm8l16x (table 2/2) (continued) subfamily stm8l151k stm8l151c medium/medium+/high density stm8l151r/m stm8l152c/r/m stm8l162r/m stm8l151c low density packages ufqfpn32 / lqfp32 ufqfpn48 / lqfp48 / lqfp64 / lqfp80 lqfp48 part numbers stm8l151k3u (1) stm8l151k[46][ut] stm8l151c[468][ut] stm8l152c[468][ut] (48 pins) stm8l151c3t (1) stm8l151r[68]t stm8l152r[68]t stm8l162r8t (64 pins) stm8l151m8t stm8l152m8t stm8l162m8t (80 pins) analog i/o group gx_ioy gpio pin number of available pins usage pin pin pin number of available pins usage pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 17/59 docid023933 rev 4 group 8 g8_io1 pd1 10 2 1 channel with 1 sampling capacitor 21 26 30 3 2 channels with 1 sampling capacitor 21 4 3 channels with 1 sampling capacitor g8_io2 pd0 9 20 25 29 20 g8_io3 pe5 - 19 24 28 19 g8_io4 pe4 - (2) (2) (2) 18 maximum number of channels 14 channels with 8 sampling capacitors 16 channels with 8 sampling capacitors 20 channels with 8 sampling capacitors 1. the product has an hardware accele ration cell for touch sensing. 2. this io does not belong to the analog io group. table 5. available touch-sensing channels fo r stm8l15x / stm8l16x (table 2/2) (continued) subfamily stm8l151k stm8l151c medium/medium+/high density stm8l151r/m stm8l152c/r/m stm8l162r/m stm8l151c low density packages ufqfpn32 / lqfp32 ufqfpn48 / lqfp48 / lqfp64 / lqfp80 lqfp48 part numbers stm8l151k3u (1) stm8l151k[46][ut] stm8l151c[468][ut] stm8l152c[468][ut] (48 pins) stm8l151c3t (1) stm8l151r[68]t stm8l152r[68]t stm8l162r8t (64 pins) stm8l151m8t stm8l152m8t stm8l162m8t (80 pins) analog i/o group gx_ioy gpio pin number of available pins usage pin pin pin number of available pins usage pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 18/59 docid023933 rev 4 5.2 stm8tl5x 5.2.1 stm8tl5x features ? up to 300 capacitive sensing channels composed of 15 transmitters and 20 receivers ? with up to 10 rx channe ls acquired in parallel ? fast acquisition with a typical scan time of 250 s for 10 rx channels ? configurable internal sampling capacitor (cs) ? electrode parasitic capacitance compensation (epcc) to ensure the best sensitivity in all user environments ? rf noise detection, allowing to reject corrupted samples ? external trigger to de-synchronize the acquisition from known noise ? can be configured to return to low power mode between each conversion ? acquisition possible in run, wait and active-halt modes 5.2.2 stm8tl5x available touch-sensing channels the table below provides an overview of th e available touch sensing channels for the stm8tl5x devices. note1: the following table is not re strictive in term of part numb ers supported by the stmtouch driver. the stmtouch driver can be used on any new device that may become available as part of st microcontrollers portfolio. please contact your st representative for support. note2: for n available pins in an i/o group, one pi n is used as sampling capacitor and n-1 pins are used as channels. the i/o group cannot be used if the number of available pins in less or equal to one.
docid023933 rev 4 19/59 xxxx-touch-lib touch-sensing channels availability 58 table 6. available touch-sensing channels for stm8tl5x subfamily stm8tl5x packages tssop20 ufqfpn28 ufqfpn48 part numbers stm8tl52f4p stm8tl52g4u stm8tl53c4u stm8tl53f4p stm8tl53g4u pxs function gpio pin pin us age pin pin usage pin usage receiver a (1) rx0a - 11 11 5 receivers / transmitters 10 10 8 receivers / transmitters 13 10 receivers / transmitters rx1a - 12 12 11 11 15 rx2a - 13 13 12 12 17 rx3a - - - 13 13 19 rx4a - - - 14 14 21 rx5a - - - 15 15 23 rx6a - 14 14 16 16 25 rx7a - 15 15 17 17 27 rx8a - - - - - 29 rx9a - - - - - 31 receiver b (1) rx0b - - - 0 receivers / transmitters -- 0 receivers / transmitters 14 10 receivers / transmitters rx1b - - - - - 16 rx2b - - - - - 18 rx3b - - - - - 20 rx4b - - - - - 22 rx5b - - - - - 24 rx6b - - - - - 26 rx7b - - - - - 28 rx8b - - - - - 30 rx9b - - - - - 32
touch-sensing channels availability xxxx-touch-lib 20/59 docid023933 rev 4 transmitte r tx0 pd0 16 16 stm8tl52f4p: 2 transmitters stm8tl53f4p: 5 transmitters 18 18 stm8tl52g4u: 2 transmitters stm8tl53g4u: 9 transmitters 33 15 transmitters tx1 pd1 17 17 19 19 34 tx2 pd2 - - 20 (2) 20 35 tx3 pd3 - - 21 (2) 21 36 tx4 pd4 18 (2) 18 22 (2) 22 39 tx5 pd5 19 (2) 19 23 (2) 23 40 tx6 pd6 20 (2) 20 24 (2) 24 41 tx7 pd7 - - 27 (2) 27 42 tx8 pb0 - - 28 (2) 28 43 tx9 pb1 - - - - 44 tx10 pb2 - - - - 45 tx11 pb3 - - - - 46 tx12 pb4 - - - - 47 tx13 pb5 - - - - 48 tx14 pb6 - - - - 1 maximum number of channels stm8tl52f4p: 12 channels with a 4rx*3tx matrix stm8tl53f4p: 25 channels with a 5rx*5tx matrix stm8tl52g4u: 25 channels with a 5rx*5tx matrix stm8tl53g4u: 72 channels with a 8rx*9tx matrix 300 channels with a 20rx*15tx matrix 1. the receivers can also be used as transmi tters. this is used to define the square matrix to address the maximum number of channels (please refer to product datasheet for further information). 2. on stm8tl52 devices, this gp io is present but does not s upport the pxs alternate function. table 6. available touch-sensing channels for stm8tl5x (continued) subfamily stm8tl5x packages tssop20 ufqfpn28 ufqfpn48 part numbers stm8tl52f4p stm8tl52g4u stm8tl53c4u stm8tl53f4p stm8tl53g4u pxs function gpio pin pin us age pin pin usage pin usage
docid023933 rev 4 21/59 xxxx-touch-lib touch-sensing channels availability 58 5.3 stm32f0xx 5.3.1 stm32f0xx features ? proven and robust surface charge transfer acquisition principle ? supports up to 24 capacitive sensing channels ? up to 8 capacitive sensing channels can be acquired in parallel offering a very good response time ? spread spectrum feature to improve system robustness in noisy environments ? full hardware management of the charge transfer acquisition sequence ? programmable charge transfer frequency ? programmable sampling capacitor i/o pin ? programmable channel i/o pin ? programmable max count value to avoid long acquisition when a channel is faulty ? dedicated end of acquisiti on and max count er ror flags with inte rrupt capability ? one sampling capacitor for up to 3 capaciti ve sensing channels to reduce the system components ? compatible with proximity, touchkey, linear and rotary touch sensor implementation
touch-sensing channels availability xxxx-touch-lib 22/59 docid023933 rev 4 5.3.2 stm32f0xx available touch-sensing channels the tables below provide an overview of th e available touch sensing channels for the stm32f0xx devices. note 1: the following tables are not restrictive in term of part numbers supported by the stmtouch driver. the stmtouch driver can be used on any new device that may become available as part of st microcontrollers portfolio. please contact your st representative for support. note2: for n available pins in an i/o group, one pi n is used as sampling capacitor and n-1 pins are used as channels. the i/o group cannot be used if the number of available pins in less or equal to one.
touch-sensing channels availability xxxx-touch-lib 23/59 docid023933 rev 4 table 7. available touch sensing channels for stm32f042 subfamily stm32f042 packages tssop20 ufqfpn28 lqfp32 / ufqfpn32 wlcsp36 lqfp48 / ufqfpn48 flash memory size 4=16k, 6=32k part numbers stm32f042f[46] stm32f042g[46] st m32f042k[46] stm32f042t[46] stm32f042c[46] analog i/o group gx_ioy gpio pin number of availabl e pins usage pin number of available pins usage pin lqfp pin ufqfp n number of available pins usage pin number of available pins usage pin number of available pins usage group 1 g1_io1 pa0 6 4 3 channels with 1 sampling capacitor 6 4 3 channels with 1 sampling capacitor 66 4 3 channels with 1 sampling capacitor f6 4 3 channels with 1 sampling capacitor 10 4 3 channels with 1 sampling capacitor g1_io2 pa1 7 7 7 7 d4 11 g1_io3 pa2 8 8 8 8 e4 12 g1_io4 pa3 9 9 9 9 f5 13 group 2 g2_io1 pa4 (1) 10 4 3 channels with 1 sampling capacitor 10 4 3 channels with 1 sampling capacitor 10 10 4 3 channels with 1 sampling capacitor c3 4 3 channels with 1 sampling capacitor 14 4 3 channels with 1 sampling capacitor g2_io2 pa5 (1) 11 11 11 11 d3 15 g2_io3 pa6 12 12 12 12 e3 16 g2_io4 pa7 13 13 13 13 f4 17 group 3 g3_io1 - - 1 cannot be used for touch sensing - 2 1 channels with 1 sampling capacitor -- 2/3 1/2 channels with 1 sampling capacitor - 3 2channels with 1 sampling capacitor - 3 2 channels with 1 sampling capacitor g3_io2 pb0 - 14 14 14 f3 18 g3_io3 pb1 14 15 15 15 f2 19 g3_io4 pb2 - - - 16 c2 20 group 4 g4_io1 pa9 17 (2) 4 3 channels with 1 sampling capacitor 19 (2) 4 3 channels with 1 sampling capacitor 19 19 4 3 channels with 1 sampling capacitor d1 4 3 channels with 1 sampling capacitor 30 4 3 channels with 1 sampling capacitor g4_io2 pa10 18 (2) 20 (2) 20 20 d2 31 g4_io3 pa11 17 (2) 19 (2) 21 21 c1 32 g4_io4 pa12 18 (2) 20 (2) 22 22 a1 33 group 5 g5_io1 pb3 - 0 cannot be used for touch sensing 24 4 3 channels with 1 sampling capacitor 26 26 4 3 channels with 1 sampling capacitor b3 4 3 channels with 1 sampling capacitor 39 4 3 channels with 1 sampling capacitor g5_io2 pb4 - 25 27 27 a3 40 g5_io3 pb6 - 27 29 29 c4 42 g5_io4 pb7 - 28 30 30 a4 43
touch-sensing channels availability xxxx-touch-lib 24/59 docid023933 rev 4 group 6 not available - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing -- 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing -- -- - - -- -- - - -- -- - - group 7 - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing -- 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - --- -- - --- -- - --- -- group 8 - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing -- 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - --- -- - --- -- - --- -- maximum number of channels 9 with 3 sampling capacitors 13 with 5 sampling capacitors 13/14 with 5 sampling capacitors 14 with 5 sampling capacitors 14 with 5 sampling capacitors 1. this gpio offers a reduced touch s ensing sensitivity. it is thus recommende d to use it as sampling capacitor i/o. 2. pin pair pa11/pa12 can be remapped instead of pin pair pa9/pa10 using sys_ctrl register. table 7. available touch sensing channels for stm32f042 (continued) subfamily stm32f042 packages tssop20 ufqfpn28 lqfp32 / ufqfpn32 wlcsp36 lqfp48 / ufqfpn48 flash memory size 4=16k, 6=32k part numbers stm32f042f[46] stm32f042g[46] st m32f042k[46] stm32f042t[46] stm32f042c[46] analog i/o group gx_ioy gpio pin number of availabl e pins usage pin number of available pins usage pin lqfp pin ufqfp n number of available pins usage pin number of available pins usage pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 25/59 docid023933 rev 4 table 8. available touch sensing channels for stm32f051 and stm32f072 subfamily stm32f051/stm32f072 packages lqfp32/ufqfpn32 lqfp48 lqfp64 lqfp100 flash memory size 4=16k, 6=32k, 8=64k, b=128k, c=256k part numbers stm32f051k[468] stm32f051c[468b] stm32f072c[8b] stm32f051r[468b] stm32f072r[8b] stm32f051vb stm32f052v[8b] analog i/o group gx_ioy gpio pin lqfp pin ufqfpn number of available pins usage pin number of available pins usage pin number of available pins usage pin number of available pins usage group 1 g1_io1 pa0 6 6 4 3 channels with 1 sampling capacitor 10 4 3 channels with 1 sampling capacitor 14 4 3 channels with 1 sampling capacitor 23 4 3 channels with 1 sampling capacitor g1_io2 pa1 7 7 11 15 24 g1_io3 pa2 8 8 12 16 25 g1_io4 pa3 9 9 13 17 26 group 2 g2_io1 pa4 (1) 10 10 4 3 channels with 1 sampling capacitor 14 4 3 channels with 1 sampling capacitor 20 4 3 channels with 1 sampling capacitor 29 4 3 channels with 1 sampling capacitor g2_io2 pa5 (1) 11 11 15 21 30 g2_io3 pa6 12 12 16 22 31 g2_io4 pa7 13 13 17 23 32 group 3 g3_io1 pc5 - - 2/3 1/2 channels with 1 sampling capacitor - 3 2 channels with 1 sampling capacitor 25 4 3 channels with 1 sampling capacitor 34 4 3 channels with 1 sampling capacitor g3_io2 pb0 14 14 18 26 35 g3_io3 pb1 15 15 19 27 36 g3_io4 pb2 - 16 20 28 37 group 4 g4_io1 pa9 19 19 4 3 channels with 1 sampling capacitor 30 4 3 channels with 1 sampling capacitor 42 4 3 channels with 1 sampling capacitor 68 4 3 channels with 1 sampling capacitor g4_io2 pa10 20 20 31 43 69 g4_io3 pa11 21 21 32 44 70 g4_io4 pa12 22 22 33 45 71
touch-sensing channels availability xxxx-touch-lib 26/59 docid023933 rev 4 group 5 g5_io1 pb3 26 26 4 3 channels with 1 sampling capacitor 39 4 3 channels with 1 sampling capacitor 55 4 3 channels with 1 sampling capacitor 89 4 3 channels with 1 sampling capacitor g5_io2 pb4 27 27 40 56 90 g5_io3 pb6 29 29 42 58 92 g5_io4 pb7 30 30 43 59 93 group 6 g6_io1 pb11 - - 0 cannot be used for touch sensing 22 4 3 channels with 1 sampling capacitor 30 4 3 channels with 1 sampling capacitor 48 4 3 channels with 1 sampling capacitor g6_io2 pb12 - - 25 33 51 g6_io3 pb13 - - 26 34 52 g6_io4 pb14 - - 27 35 53 group 7 g7_io1 pe2 - - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing 1 4 3 channels with 1 sampling capacitor g7_io2 pe3 - - -- 2 g7_io3 pe4 - - -- 3 g7_io4 pe5 - - -- 4 group 8 g8_io1 pd12 - - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing 59 4 3 channels with 1 sampling capacitor g8_io2 pd13 - - --60 g8_io3 pd14 - - --61 g8_io4 pd15 - - --62 maximum number of channels 13/14 with 5 sampling capacitors 17 with 6 sampling capacitors 18 with 6 sampling capacitors 24 with 8 sampling capacitors 1. this gpio offers a reduced touch sens ing sensitivity. it is thus recommended to use it as sampling capacitor i/o. table 8. available touch sensing channels for stm32f051 and stm32f072 (continued) subfamily stm32f051/stm32f072 packages lqfp32/ufqfpn32 lqfp48 lqfp64 lqfp100 flash memory size 4=16k, 6=32k, 8=64k, b=128k, c=256k part numbers stm32f051k[468] stm32f051c[468b] stm32f072c[8b] stm32f051r[468b] stm32f072r[8b] stm32f051vb stm32f052v[8b] analog i/o group gx_ioy gpio pin lqfp pin ufqfpn number of available pins usage pin number of available pins usage pin number of available pins usage pin number of available pins usage
docid023933 rev 4 27/59 xxxx-touch-lib touch-sensing channels availability 58 5.4 stm32f3xx 5.4.1 stm32f3xx features ? proven and robust surface charge transfer acquisition principle ? supports up to 24 capacitive sensing channels ? up to 8 capacitive sensing channels can be acquired in parallel offering a very good response time ? spread spectrum feature to improve system robustness in noisy environments ? full hardware management of the charge transfer acquisition sequence ? programmable charge transfer frequency ? programmable sampling capacitor i/o pin ? programmable channel i/o pin ? programmable max count value to avoid long acquisition when a channel is faulty ? dedicated end of acquisiti on and max count er ror flags with inte rrupt capability ? one sampling capacitor for up to 3 capaciti ve sensing channels to reduce the system components ? compatible with proximity, touchkey, linear and rotary touch sensor implementation
touch-sensing channels availability xxxx-touch-lib 28/59 docid023933 rev 4 5.4.2 stm32f3xx available touch-sensing channels the tables below provide an overview of th e available touch sensing channels for the stm32f3xx devices. note 1: the following tables are not restrictive in term of part numbers supported by the stmtouch driver. the stmtouch driver can be used on any new device that may become available as part of st microcontrollers portfolio. please contact your st representative for support. note2: for n available pins in an i/o group, one pi n is used as sampling capacitor and n-1 pins are used as channels. the i/o group cannot be used if the number of available pins in less or equal to one.
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 29/59 table 9. available touch sensing channels for stm32f30x subfamily stm32f30x packages lqfp32 lqfp48 lqfp64 lqfp100 part numbers stm32f301k[468] stm32f302k[468] stm32f303k[468] stm32f333k[468] stm32f301c[468] stm32f302c[468bc] stm32f303c[468bc] stm32f333c[468] stm32f301r[468] stm32f302r[468bc] stm32f303r[468bc] stm32f333r[468] stm32f302v[bc] stm32f303v[bc] analog i/o group gx_ioy gpio pin number of available pins usage pin number of availabl e pins usage pin number of available pins usage pin number of availabl e pins usage group 1 g1_io1 pa0 7 4 3 channels with 1 sampling capacitor 10 4 3 channels with 1 sampling capacitor 14 4 3 channels with 1 sampling capacitor 23 4 3 channels with 1 sampling capacitor g1_io2 pa1 8 11 15 24 g1_io3 pa2 9 12 16 25 g1_io4 pa3 10 13 17 26 group 2 g2_io1 pa4 (1) 11 4 3 channels with 1 sampling capacitor 14 4 3 channels with 1 sampling capacitor 20 4 3 channels with 1 sampling capacitor 29 4 3 channels with 1 sampling capacitor g2_io2 pa5 (1) 12 15 21 30 g2_io3 pa6 13 16 22 31 g2_io4 pa7 14 17 23 32 group 3 g3_io1 pc5 - 1 cannot be used for touch sensing - 3 2 channels with 1 sampling capacitor 25 4 3 channels with 1 sampling capacitor 34 4 3 channels with 1 sampling capacitor g3_io2 pb0 15 18 26 35 g3_io3 pb1 - 19 27 36 g3_io4 pb2 - 20 28 37 group 4 g4_io1 pa9 19 4 3 channels with 1 sampling capacitor 30 4 3 channels with 1 sampling capacitor 42 4 3 channels with 1 sampling capacitor 68 4 3 channels with 1 sampling capacitor g4_io2 pa10 20 31 43 69 g4_io3 pa13 23 34 46 72 g4_io4 pa14 24 37 49 76
touch-sensing channels availability xxxx-touch-lib 30/59 docid023933 rev 4 group 5 g5_io1 pb3 26 4 3 channels with 1 sampling capacitor 39 4 3 channels with 1 sampling capacitor 55 4 3 channels with 1 sampling capacitor 89 4 3 channels with 1 sampling capacitor g5_io2 pb4 27 40 56 90 g5_io3 pb6 29 42 58 92 g5_io4 pb7 30 43 59 93 group 6 g6_io1 pb11 - 0 cannot be used for touch sensing 22 4 3 channels with 1 sampling capacitor 30 4 3 channels with 1 sampling capacitor 48 4 3 channels with 1 sampling capacitor g6_io2 pb12 - 25 33 51 g6_io3 pb13 - 26 34 52 g6_io4 pb14 - 27 35 53 group 7 g7_io1 pe2 - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing 1 4 3 channels with 1 sampling capacitor g7_io2 pe3 - - - 2 g7_io3 pe4 - - - 3 g7_io4 pe5 - - - 4 group 8 g8_io1 pd12 - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing 59 4 3 channels with 1 sampling capacitor g8_io2 pd13 - - - 60 g8_io3 pd14 - - - 61 g8_io4 pd15 - - - 62 maximum number of channels 12 with 4 sampling capacitors 17 with 6 sampling capacitors 18 with 6 sampling capacitors 24 with 8 sampling capacitors 1. this gpio offers a reduced touch sens ing sensitivity. it is thus recommended to use it as sampling capacitor i/o. table 9. available touch sensing channels for stm32f30x (continued) subfamily stm32f30x packages lqfp32 lqfp48 lqfp64 lqfp100 part numbers stm32f301k[468] stm32f302k[468] stm32f303k[468] stm32f333k[468] stm32f301c[468] stm32f302c[468bc] stm32f303c[468bc] stm32f333c[468] stm32f301r[468] stm32f302r[468bc] stm32f303r[468bc] stm32f333r[468] stm32f302v[bc] stm32f303v[bc] analog i/o group gx_ioy gpio pin number of available pins usage pin number of availabl e pins usage pin number of available pins usage pin number of availabl e pins usage
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 31/59 . table 10. available touch sensing channels for stm32f37x subfamily stm32f37x packages lqfp48 lqfp64 lqfp100 / ufbga100 flash memory size 8=64k, b=128k, c=256k part numbers stm32f373c[8bc] stm32f373r[8bc] stm32f373v[8bc] analog i/o group gx_ioy gpio pin number of available pins usage pin number of available pins usage lqfp pin bga pin number of available pins usage group 1 g1_io1 pa0 10 4 3 channels with 1 sampling capacitor 14 4 3 channels with 1 sampling capacitor 23 l2 4 3 channels with 1 sampling capacitor g1_io2 pa1 11 15 24 m2 g1_io3 pa2 12 16 25 k3 g1_io4 pa3 13 18 26 l3 group 2 g2_io1 pa4 14 3 2 channels with 1 sampling capacitor 20 4 3 channels with 1 sampling capacitor 29 m3 4 3 channels with 1 sampling capacitor g2_io2 pa5 (1) 15 21 30 k4 g2_io3 pa6 (1) 16 22 31 l4 g2_io4 pa7 - 23 32 m4 group 3 g3_io1 pc4 - 2 1 channel with 1 sampling capacitor 24 4 3 channels with 1 sampling capacitor 33 k5 4 3 channels with 1 sampling capacitor g3_io2 pc5 - 25 34 l5 g3_io3 pb0 18 26 35 m5 g3_io4 pb1 19 27 36 m6
touch-sensing channels availability xxxx-touch-lib 32/59 docid023933 rev 4 group 4 g4_io1 pa9 30 4 3 channels with 1 sampling capacitor 42 4 3 channels with 1 sampling capacitor 68 d10 4 3 channels with 1 sampling capacitor g4_io2 pa10 31 43 69 c12 g4_io3 pa13 34 46 72 a11 g4_io4 pa14 37 49 76 a10 group 5 g5_io1 pb3 39 4 3 channels with 1 sampling capacitor 55 4 3 channels with 1 sampling capacitor 89 a8 4 3 channels with 1 sampling capacitor g5_io2 pb4 40 56 90 a7 g5_io3 pb6 42 58 92 b5 g5_io4 pb7 43 59 93 b4 group 6 g6_io1 pb14 26 3 2 channels with 1 sampling capacitor 34 3 2 channels with 1 sampling capacitor 53 k11 4 3 channels with 1 sampling capacitor g6_io2 pb15 27 35 54 k10 g6_io3 pd8 28 36 55 k9 g6_io4 pd9 - - 56 k8 table 10. available touch sensing channels for stm32f37x (continued) subfamily stm32f37x packages lqfp48 lqfp64 lqfp100 / ufbga100 flash memory size 8=64k, b=128k, c=256k part numbers stm32f373c[8bc] stm32f373r[8bc] stm32f373v[8bc] analog i/o group gx_ioy gpio pin number of available pins usage pin number of available pins usage lqfp pin bga pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 33/59 docid023933 rev 4 group 7 g7_io1 pe2 - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing 1b2 4 3 channels with 1 sampling capacitor g7_io2 pe3 - - 2 a1 g7_io3 pe4 - - 3 b1 g7_io4 pe5 - - 4 c2 group 8 g8_io1 pd12 - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing 59 j10 4 3 channels with 1 sampling capacitor g8_io2 pd13 - - 60 h12 g8_io3 pd14 - - 61 h11 g8_io4 pd15 - - 62 h10 maximum number of channels 14 with 6 sampling capacitors 17 with 6 sampling capacitors 24 with 8 sampling capacitors 1. this gpio offers a reduced touch sens ing sensitivity. it is thus recommended to use it as sampling capacitor i/o. table 10. available touch sensing channels for stm32f37x (continued) subfamily stm32f37x packages lqfp48 lqfp64 lqfp100 / ufbga100 flash memory size 8=64k, b=128k, c=256k part numbers stm32f373c[8bc] stm32f373r[8bc] stm32f373v[8bc] analog i/o group gx_ioy gpio pin number of available pins usage pin number of available pins usage lqfp pin bga pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 34/59 docid023933 rev 4 5.5 stm32l1xx 5.5.1 stm32l1xx features ? proven and robust surface charge transfer acquisition principle ? supports up to 34 capacitive sensing channels ? up to 11 capacitive sensing channels can be acquired in parallel offering a very good response time ? hardware and software managements of the charge transfer acquisition sequence ? programmable charge transfer frequency (for hardware management only) ? programmable sampling capacitor i/o pin ? programmable channel i/o pin ? programmable max count value to avoid long acquisition when a channel is faulty ? dedicated end of acquisition flag with interrupt capability ? one sampling capacitor for up to 4 capaciti ve sensing channels to reduce the system components ? compatible with proximity, touchkey, linear and rotary touch sensor implementation
docid023933 rev 4 35/59 xxxx-touch-lib touch-sensing channels availability 58 5.5.2 stm32l1xx available touch-sensing channels the tables below provide an overview of th e available touch sensing channels for the stm32l1xx devices. note1: the following tables are not restrictive in term of part numbers supported by the stmtouch driver. the stmtouch driver can be used on any new device that may become available as part of st microcontrollers portfolio. please contact your st representative for support. note2: for n available pins in an i/o group, one pi n is used as sampling capacitor and n-1 pins are used as channels. the i/o group cannot be used if the number of available pins in less or equal to one.
touch-sensing channels availability xxxx-touch-lib 36/59 docid023933 rev 4 table 11. available touch sensing channels for stm32l1xx 512k subfamily stm32l1xx 512k packages lqfp64 lqfp100 / wlcsp104 ufbga132 lqfp144 part numbers stm32l151re stm32l152re stm32l162re stm32l151ve stm32l152ve stm32l162ve stm32l151qe stm32l152qe stm32l162qe stm32l151ze stm32l152ze stm32l162ze analog i/o group gx_ioy gpio lqfp pin number of available pins usage lqfp pin wlcsp ball number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage group 1 g1_io1 pa0 14 4 3 channels with 1 sampling capacitor 23 k9 4 3 channels with 1 sampling capacitor l2 4 3 channels with 1 sampling capacitor 34 4 3 channels with 1 sampling capacitor g1_io2 pa1 15 24 l9 m2 35 g1_io3 pa2 16 25 j8 k3 36 g1_io4 pa3 (1) 17 26 h7 l3 37 group 2 g2_io1 pa6 22 2 1 channel with 1 sampling capacitor 31 h6 2 1 channel with 1 sampling capacitor l4 4 (2) 3 channels with 1 sampling capacitor 42 4 (2) 3 channels with 1 sampling capacitor g2_io2 pa7 23 32 k7 j5 43 g2_io3 pf15 - - - j9 55 g2_io4 pg0 (3) --- h956 g2_io5 pg1 (3) --- g957 group 3 g3_io1 pb0 (1) 26 3 2 channels with 1 sampling capacitor 35 j6 3 2 channels with 1 sampling capacitor m5 5 4 channels with 1 sampling capacitor 46 5 4 channels with 1 sampling capacitor g3_io2 pb1 27 36 k6 m6 47 g3_io3 pb2 28 37 m6 l6 48 g3_io4 pf11 - - - k6 49 g3_io5 pf12 - - - j7 50
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 37/59 group 4 g4_io1 pa8 41 3 2 channels with 1 sampling capacitor 67 f3 3 2 channels with 1 sampling capacitor d11 3 2 channels with 1 sampling capacitor 100 3 2 channels with 1 sampling capacitor g4_io2 pa9 42 68 f1 d10 101 g4_io3 pa10 43 69 f2 c12 102 group 5 g5_io1 pa13 46 3 2 channels with 1 sampling capacitor 72 e3 3 2 channels with 1 sampling capacitor a11 3 2 channels with 1 sampling capacitor 105 3 2 channels with 1 sampling capacitor g5_io2 pa14 49 76 d3 a10 109 g5_io3 pa15 50 77 b1 a9 110 group 6 g6_io1 pb4 56 4 3 channels with 1 sampling capacitor 90 a5 4 3 channels with 1 sampling capacitor a7 4 3 channels with 1 sampling capacitor 134 4 3 channels with 1 sampling capacitor g6_io2 pb5 57 91 a6 c5 135 g6_io3 pb6 58 92 c5 b5 136 g6_io4 pb7 59 93 c7 b4 137 table 11. available touch sensing channels for stm32l1xx 512k (continued) subfamily stm32l1xx 512k packages lqfp64 lqfp100 / wlcsp104 ufbga132 lqfp144 part numbers stm32l151re stm32l152re stm32l162re stm32l151ve stm32l152ve stm32l162ve stm32l151qe stm32l152qe stm32l162qe stm32l151ze stm32l152ze stm32l162ze analog i/o group gx_ioy gpio lqfp pin number of available pins usage lqfp pin wlcsp ball number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 38/59 docid023933 rev 4 group 7 g7_io1 pb12 33 4 3 channels with 1 sampling capacitor 51 j4 4 3 channels with 1 sampling capacitor l12 5 (2) 4 channels with 1 sampling capacitor 73 5 (2) 4 channels with 1 sampling capacitor g7_io2 pb13 34 52 j3 k12 74 g7_io3 pb14 35 53 l1 k11 75 g7_io4 pb15 36 54 k2 k10 76 g7_io5 pg2 (3) ---g1087 g7_io6 pg3 (3) --- f988 g7_io7 pg4 (3) ---f1089 group 8 g8_io1 pc0 8 4 3 channels with 1 sampling capacitor 15 f6 4 3 channels with 1 sampling capacitor h1 4 3 channels with 1 sampling capacitor 26 4 3 channels with 1 sampling capacitor g8_io2 pc1 9 16 h9 j2 27 g8_io3 pc2 10 17 g9 j3 28 g8_io4 pc3 11 18 g8 k2 29 group 9 g9_io1 pc4 24 2 1 channel with 1 sampling capacitor 33 l7 2 1 channel with 1 sampling capacitor k5 4 3 channels with 1 sampling capacitor 44 4 3 channels with 1 sampling capacitor g9_io2 pc5 25 34 m7 l5 45 g9_io3 pf13 - - - k7 53 g9_io4 pf14 - - - j8 54 table 11. available touch sensing channels for stm32l1xx 512k (continued) subfamily stm32l1xx 512k packages lqfp64 lqfp100 / wlcsp104 ufbga132 lqfp144 part numbers stm32l151re stm32l152re stm32l162re stm32l151ve stm32l152ve stm32l162ve stm32l151qe stm32l152qe stm32l162qe stm32l151ze stm32l152ze stm32l162ze analog i/o group gx_ioy gpio lqfp pin number of available pins usage lqfp pin wlcsp ball number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 39/59 group 10 g10_io1 pc6 37 4 3 channels with 1 sampling capacitor 63 h1 4 3 channels with 1 sampling capacitor e12 4 3 channels with 1 sampling capacitor 96 4 3 channels with 1 sampling capacitor g10_io2 pc7 38 64 g1 e11 97 g10_io3 pc8 39 65 g2 e10 98 g10_io4 pc9 40 66 f4 d12 99 group 11 g11_io1 pf6 - 0 cannot be used for touch sensing -- 0 cannot be used for touch sensing g3 4 3 channels with 1 sampling capacitor 18 5 4 channels with 1 sampling capacitor g11_io2 pf7 - - - g4 19 g11_io3 pf8 - - - h4 20 g11_io4 pf9 - - - j6 21 g11_io5 pf10 - - - - 22 maximum number of channels 23 channels with 10 sampling capacitors 23 channels with 10 sampling capacitors 33 channels with 11 sampling capacitors 34 channels with 11 sampling capacitors 1. this gpio offers a reduced touch sens ing sensitivity. it is thus recommended to use it as sampling capacitor i/o. 2. not all the pins are availa ble simultaneously on this group. 3. this gpio can only be configured as samp ling capacitor i/o when using hw acquisition mode and as channel i/o when using sw ac quisition mode. table 11. available touch sensing channels for stm32l1xx 512k (continued) subfamily stm32l1xx 512k packages lqfp64 lqfp100 / wlcsp104 ufbga132 lqfp144 part numbers stm32l151re stm32l152re stm32l162re stm32l151ve stm32l152ve stm32l162ve stm32l151qe stm32l152qe stm32l162qe stm32l151ze stm32l152ze stm32l162ze analog i/o group gx_ioy gpio lqfp pin number of available pins usage lqfp pin wlcsp ball number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 40/59 docid023933 rev 4 table 12. available touch sensing channels for stm32l1xx 384k subfamily stm32l1xx 384k packages lqfp64 / wlcsp64 lqfp100 ufbga132 lqfp144 part numbers stm32l151rd stm32l152rd stm32l162rd stm32l151vd stm32l152vd stm32l162vd stm32l151qd stm32l152qd stm32l162qd stm32l151zd stm32l152zd stm32l162zd analog i/o group gx_ioy gpio lqfp pin wlcsp ball number of available pins usage lqfp pin number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage group 1 g1_io1 pa0 14 f6 4 3 channels with 1 sampling capacitor 23 4 3 channels with 1 sampling capacitor l2 4 3 channels with 1 sampling capacitor 34 4 3 channels with 1 sampling capacitor g1_io2 pa1 15 e6 24 m2 35 g1_io3 pa2 16 h8 25 k3 36 g1_io4 pa3 (1) 17 g7 26 l3 37 group 2 g2_io1 pa6 22 g5 2 1 channel with 1 sampling capacitor 31 2 1 channel with 1 sampling capacitor l4 4 (2) 3 channels with 1 sampling capacitor 42 4 (2) 3 channels with 1 sampling capacitor g2_io2 pa7 23 g4 32 j5 43 g2_io3 pf15 - - - j9 55 g2_io4 pg0 (3) -- - h9 56 g2_io5 pg1 (3) -- - g9 57 group 3 g3_io1 pb0 (1) 26 h4 3 2 channels with 1 sampling capacitor 35 3 2 channels with 1 sampling capacitor m5 5 4 channels with 1 sampling capacitor 46 5 4 channels with 1 sampling capacitor g3_io2 pb1 27 f4 36 m6 47 g3_io3 pb2 28 h3 37 l6 48 g3_io4 pf11 - - - k6 49 g3_io5 pf12 - - - j7 50
xxxx-touch-lib touch- sensing channels availability docid023933 rev 4 41/59 group 4 g4_io1 pa8 41 e4 3 2 channels with 1 sampling capacitor 67 3 2 channels with 1 sampling capacitor d11 3 2 channels with 1 sampling capacitor 100 3 2 channels with 1 sampling capacitor g4_io2 pa9 42 d2 68 d10 101 g4_io3 pa10 43 d3 69 c12 102 group 5 g5_io1 pa13 46 d4 3 2 channels with 1 sampling capacitor 72 3 2 channels with 1 sampling capacitor a11 3 2 channels with 1 sampling capacitor 105 3 2 channels with 1 sampling capacitor g5_io2 pa14 49 b2 76 a10 109 g5_io3 pa15 50 c3 77 a9 110 group 6 g6_io1 pb4 56 b4 4 3 channels with 1 sampling capacitor 90 4 3 channels with 1 sampling capacitor a7 4 3 channels with 1 sampling capacitor 134 4 3 channels with 1 sampling capacitor g6_io2 pb5 57 a5 91 c5 135 g6_io3 pb6 58 b5 92 b5 136 g6_io4 pb7 59 c5 93 b4 137 table 12. available touch sensing channels for stm32l1xx 384k (continued) subfamily stm32l1xx 384k packages lqfp64 / wlcsp64 lqfp100 ufbga132 lqfp144 part numbers stm32l151rd stm32l152rd stm32l162rd stm32l151vd stm32l152vd stm32l162vd stm32l151qd stm32l152qd stm32l162qd stm32l151zd stm32l152zd stm32l162zd analog i/o group gx_ioy gpio lqfp pin wlcsp ball number of available pins usage lqfp pin number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 42/59 docid023933 rev 4 group 7 g7_io1 pb12 33 g2 4 3 channels with 1 sampling capacitor 51 4 3 channels with 1 sampling capacitor l12 5 (2) 4 channels with 1 sampling capacitor 73 5 (2) 4 channels with 1 sampling capacitor g7_io2 pb13 34 g1 52 k12 74 g7_io3 pb14 35 f2 53 k11 75 g7_io4 pb15 36 f1 54 k10 76 g7_io5 pg2 (3) - - - g10 87 g7_io6 pg3 (3) -- - f9 88 g7_io7 pg4 (3) - - - f10 89 group 8 g8_io1 pc0 8 e8 4 3 channels with 1 sampling capacitor 15 4 3 channels with 1 sampling capacitor h1 4 3 channels with 1 sampling capacitor 26 4 3 channels with 1 sampling capacitor g8_io2 pc1 9 f8 16 j2 27 g8_io3 pc2 10 d6 17 j3 28 g8_io4 pc3 (1) 11 f7 18 k2 29 group 9 g9_io1 pc4 24 h6 2 1 channel with 1 sampling capacitor 33 2 1 channel with 1 sampling capacitor k5 4 3 channels with 1 sampling capacitor 44 4 3 channels with 1 sampling capacitor g9_io2 pc5 25 h5 34 l5 45 g9_io3 pf13 - - - k7 53 g9_io4 pf14 - - - j8 54 table 12. available touch sensing channels for stm32l1xx 384k (continued) subfamily stm32l1xx 384k packages lqfp64 / wlcsp64 lqfp100 ufbga132 lqfp144 part numbers stm32l151rd stm32l152rd stm32l162rd stm32l151vd stm32l152vd stm32l162vd stm32l151qd stm32l152qd stm32l162qd stm32l151zd stm32l152zd stm32l162zd analog i/o group gx_ioy gpio lqfp pin wlcsp ball number of available pins usage lqfp pin number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 43/59 docid023933 rev 4 group 10 g10_io1 pc6 37 e1 4 3 channels with 1 sampling capacitor 63 4 3 channels with 1 sampling capacitor e12 4 3 channels with 1 sampling capacitor 96 4 3 channels with 1 sampling capacitor g10_io2 pc7 38 e2 64 e11 97 g10_io3 pc8 39 e3 65 e10 98 g10_io4 pc9 40 d1 66 d12 99 group 11 g11_io1 pf6 - - 0 cannot be used for touch sensing - 0 cannot be used for touch sensing g3 4 3 channels with 1 sampling capacitor 18 5 4 channels with 1 sampling capacitor g11_io2 pf7 - - - g4 19 g11_io3 pf8 - - - h4 20 g11_io4 pf9 - - - j6 21 g11_io5 pf10 - - - - 22 maximum number of channels 23 channels with 10 sampling capacitors 23 channels with 10 sampling capacitors 33 channels with 11 sampling capacitors 34 channels with 11 sampling capacitors 1. this gpio offers a reduced touch s ensing sensitivity. it is thus recommend ed to use it as sampling capacitor i/o. 2. not all the pins are avail able simultaneously on this group. 3. this gpio can only be confi gured as sampling capacitor i/o when using hw acqu isition mode and as channel i/o when using sw a cquisition mode. table 12. available touch sensing channels for stm32l1xx 384k (continued) subfamily stm32l1xx 384k packages lqfp64 / wlcsp64 lqfp100 ufbga132 lqfp144 part numbers stm32l151rd stm32l152rd stm32l162rd stm32l151vd stm32l152vd stm32l162vd stm32l151qd stm32l152qd stm32l162qd stm32l151zd stm32l152zd stm32l162zd analog i/o group gx_ioy gpio lqfp pin wlcsp ball number of available pins usage lqfp pin number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 44/59 docid023933 rev 4 table 13. available touch sensing channels for stm32l1xx 256k (table 1/2) subfamily stm32l1xx 256k packages lqfp48 or ufqfpn48 wlcsp63 lqfp64 / wlcsp64 part numbers stm32l152cc stm32l151uc stm32l151rc stm32l152rc stm32l162rc analog i/o group gx_ioy gpio pin number of available pins usage wlcsp ball number of available pins usage lqfp pin wlcsp ball number of available pins usage group 1 g1_io1 pa0 10 4 3 channels with 1 sampling capacitor e4 4 3 channels with 1 sampling capacitor 14 f6 4 3 channels with 1 sampling capacitor g1_io2 pa1 11 g5 15 e6 g1_io3 pa2 12 h6 16 h8 g1_io4 pa3 (1) 13 j7 17 g7 group 2 g2_io1 pa6 16 2 1 channel with 1 sampling capacitor g4 2 1 channel with 1 sampling capacitor 22 g5 2 1 channel with 1 sampling capacitor g2_io2 pa7 17 j5 23 g4 g2_io3 pf15 - - - - g2_io4 pg0 (2) ---- g2_io5 pg1 (2) ---- group 3 g3_io1 pb0 (1) 18 3 2 channels with 1 sampling capacitor j3 3 2 channels with 1 sampling capacitor 26 h4 3 2 channels with 1 sampling capacitor g3_io2 pb1 19 h3 27 f4 g3_io3 pb2 20 g3 28 h3 g3_io4 pf11 - - - - g3_io5 pf12 - - - - group 4 g4_io1 pa8 29 3 2 channels with 1 sampling capacitor e3 3 2 channels with 1 sampling capacitor 41 e4 3 2 channels with 1 sampling capacitor g4_io2 pa9 30 c1 42 d2 g4_io3 pa10 31 d2 43 d3
touch-sensing channels availability xxxx-touch-lib 45/59 docid023933 rev 4 group 5 g5_io1 pa13 34 3 2 channels with 1 sampling capacitor c2 3 2 channels with 1 sampling capacitor 46 d4 3 2 channels with 1 sampling capacitor g5_io2 pa14 37 c3 49 b2 g5_io3 pa15 38 a2 50 c3 group 6 g6_io1 pb4 40 4 3 channels with 1 sampling capacitor d4 4 3 channels with 1 sampling capacitor 56 b4 4 3 channels with 1 sampling capacitor g6_io2 pb5 41 a5 57 a5 g6_io3 pb6 42 b5 58 b5 g6_io4 pb7 43 c5 59 c5 group 7 g7_io1 pb12 25 4 3 channels with 1 sampling capacitor g2 4 3 channels with 1 sampling capacitor 33 g2 4 3 channels with 1 sampling capacitor g7_io2 pb13 26 g1 34 g1 g7_io3 pb14 27 f3 35 f2 g7_io4 pb15 28 f2 36 f1 g7_io5 pg2 (2) ---- g7_io6 pg3 (2) ---- g7_io7 pg4 (2) ---- table 13. available touch sensing channels for stm32l1xx 256k (table 1/2) (continued) subfamily stm32l1xx 256k packages lqfp48 or ufqfpn48 wlcsp63 lqfp64 / wlcsp64 part numbers stm32l152cc stm32l151uc stm32l151rc stm32l152rc stm32l162rc analog i/o group gx_ioy gpio pin number of available pins usage wlcsp ball number of available pins usage lqfp pin wlcsp ball number of available pins usage
touch-sensing channels availability xxxx-touch-lib 46/59 docid023933 rev 4 group 8 g8_io1 pc0 - 0 cannot be used for touch sensing e6 4 3 channels with 1 sampling capacitor 8e8 4 3 channels with 1 sampling capacitor g8_io2 pc1 - e5 9 f8 g8_io3 pc2 - g7 10 d6 g8_io4 pc3 - g6 11 f7 group 9 g9_io1 pc4 - 0 f4 2 1 channel with 1 sampling capacitor 24 h6 2 1 channel with 1 sampling capacitor g9_io2 pc5 - j4 25 h5 g9_io3 pf13 - - - - g9_io4 pf14 - - - - group 10 g10_io1 pc6 - 0 f1 4 3 channels with 1 sampling capacitor 37 e1 4 3 channels with 1 sampling capacitor g10_io2 pc7 - e1 38 e2 g10_io3 pc8 - d1 39 e3 g10_io4 pc9 - e2 40 d1 group11 g11_io1 pf6 - 0 - 0 cannot be used for touch sensing -- 0 cannot be used for touch sensing g11_io2 pf7 - - - - g11_io3 pf8 - - - - g11_io4 pf9 - - - - g11_io5 pf10 - - - - table 13. available touch sensing channels for stm32l1xx 256k (table 1/2) (continued) subfamily stm32l1xx 256k packages lqfp48 or ufqfpn48 wlcsp63 lqfp64 / wlcsp64 part numbers stm32l152cc stm32l151uc stm32l151rc stm32l152rc stm32l162rc analog i/o group gx_ioy gpio pin number of available pins usage wlcsp ball number of available pins usage lqfp pin wlcsp ball number of available pins usage
touch-sensing channels availability xxxx-touch-lib 47/59 docid023933 rev 4 maximum number of channels 16 channels with 7 sampling capacitors 23 channels with 10 sampling capacitors 23 channels with 10 sampling capacitors 1. this gpio offers a reduced touch s ensing sensitivity. it is thus recommend ed to use it as sampling capacitor i/o. 2. this gpio can only be configur ed as sampling capacitor i/o when using hw acquis ition mode and as channel i/o when using sw ac quisition mode. table 13. available touch sensing channels for stm32l1xx 256k (table 1/2) (continued) subfamily stm32l1xx 256k packages lqfp48 or ufqfpn48 wlcsp63 lqfp64 / wlcsp64 part numbers stm32l152cc stm32l151uc stm32l151rc stm32l152rc stm32l162rc analog i/o group gx_ioy gpio pin number of available pins usage wlcsp ball number of available pins usage lqfp pin wlcsp ball number of available pins usage
touch-sensing channels availability xxxx-touch-lib 48/59 docid023933 rev 4 table 14. available touch sensing channels for stm32l1xx 256k (table 2/2) subfamily stm32l1xx 256k packages lqfp100 / ufbga100 ufbga132 lqfp144 part numbers stm32l151vc stm32l152vc stm32l162vc stm32l151qc stm32l152qc stm32l162qc stm32l151zc stm32l152zc stm32l162zc analog i/o group gx_ioy gpio lqfp pin bga ball number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage group 1 g1_io1 pa0 23 l2 4 3 channels with 1 sampling capacitor l2 4 3 channels with 1 sampling capacitor 34 4 3 channels with 1 sampling capacitor g1_io2 pa1 24 m2 m2 35 g1_io3 pa2 25 k3 k3 36 g1_io4 pa3 (1) 26 l3 l3 37 group 2 g2_io1 pa6 31 l4 2 1 channel with 1 sampling capacitor l4 4 (2) 3 channels with 1 sampling capacitor 42 4 (2) 3 channels with 1 sampling capacitor g2_io2 pa7 32 m4 j5 43 g2_io3 pf15 - - j9 55 g2_io4 pg0 (3) -- h9 56 g2_io5 pg1 (3) -- g9 57 group 3 g3_io1 pb0 (1) 35 m5 3 2 channels with 1 sampling capacitor m5 5 4 channels with 1 sampling capacitor 46 5 4 channels with 1 sampling capacitor g3_io2 pb1 36 m6 m6 47 g3_io3 pb2 37 l6 l6 48 g3_io4 pf11 - - k6 49 g3_io5 pf12 - - j7 50 group 4 g4_io1 pa8 67 d11 3 2 channels with 1 sampling capacitor d11 3 2 channels with 1 sampling capacitor 100 3 2 channels with 1 sampling capacitor g4_io2 pa9 68 d10 d10 101 g4_io3 pa10 69 c12 c12 102
touch-sensing channels availability xxxx-touch-lib 49/59 docid023933 rev 4 group 5 g5_io1 pa13 72 a11 3 2 channels with 1 sampling capacitor a11 3 2 channels with 1 sampling capacitor 105 3 2 channels with 1 sampling capacitor g5_io2 pa14 76 a10 a10 109 g5_io3 pa15 77 a9 a9 110 group 6 g6_io1 pb4 90 a7 4 3 channels with 1 sampling capacitor a7 4 3 channels with 1 sampling capacitor 134 4 3 channels with 1 sampling capacitor g6_io2 pb5 91 c5 c5 135 g6_io3 pb6 92 b5 b5 136 g6_io4 pb7 93 b4 b4 137 group 7 g7_io1 pb12 51 l12 4 3 channels with 1 sampling capacitor l12 5 (2) 4 channels with 1 sampling capacitor 73 5 (2) 4 channels with 1 sampling capacitor g7_io2 pb13 52 k12 k12 74 g7_io3 pb14 53 k11 k11 75 g7_io4 pb15 54 k10 k10 76 g7_io5 pg2 (3) -- g10 87 g7_io6 pg3 (3) -- f9 88 g7_io7 pg4 (3) -- f10 89 group 8 g8_io1 pc0 15 h1 4 3 channels with 1 sampling capacitor h1 4 3 channels with 1 sampling capacitor 26 4 3 channels with 1 sampling capacitor g8_io2 pc1 16 j2 j2 27 g8_io3 pc2 17 j3 j3 28 g8_io4 pc3 18 k2 k2 (3) 29 (3) table 14. available touch sensing channels for stm32l1xx 256k (table 2/2) (continued) subfamily stm32l1xx 256k packages lqfp100 / ufbga100 ufbga132 lqfp144 part numbers stm32l151vc stm32l152vc stm32l162vc stm32l151qc stm32l152qc stm32l162qc stm32l151zc stm32l152zc stm32l162zc analog i/o group gx_ioy gpio lqfp pin bga ball number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 50/59 docid023933 rev 4 group 9 g9_io1 pc4 33 k5 2 1 channel with 1 sampling capacitor k5 4 3 channels with 1 sampling capacitor 44 4 3 channels with 1 sampling capacitor g9_io2 pc5 34 l5 l5 45 g9_io3 pf13 - - k7 53 g9_io4 pf14 - - j8 54 group 10 g10_io1 pc6 63 e12 4 3 channels with 1 sampling capacitor e12 4 3 channels with 1 sampling capacitor 96 4 3 channels with 1 sampling capacitor g10_io2 pc7 64 e11 e11 97 g10_io3 pc8 65 e10 e10 98 g10_io4 pc9 66 d12 d12 99 group11 g11_io1 pf6 - - 0 cannot be used for touch sensing g3 4 3 channels with 1 sampling capacitor 18 5 4 channels with 1 sampling capacitor g11_io2 pf7 - - g4 19 g11_io3 pf8 - - h4 20 g11_io4 pf9 - - j6 21 g11_io5 pf10 - - - 22 maximum number of channels 23 channels with 10 sampling capacitors 33 channels with 11 sampling capacitors 34 channels with 11 sampling capacitors 1. this gpio offers a reduced touch s ensing sensitivity. it is thus recommend ed to use it as sampling capacitor i/o. 2. not all the pins are avail able simultaneously on this group. 3. this gpio can only be configur ed as sampling capacitor i/o when using hw acquis ition mode and as channel i/o when using sw ac quisition mode. table 14. available touch sensing channels for stm32l1xx 256k (table 2/2) (continued) subfamily stm32l1xx 256k packages lqfp100 / ufbga100 ufbga132 lqfp144 part numbers stm32l151vc stm32l152vc stm32l162vc stm32l151qc stm32l152qc stm32l162qc stm32l151zc stm32l152zc stm32l162zc analog i/o group gx_ioy gpio lqfp pin bga ball number of available pins usage bga ball number of available pins usage lqfp pin number of available pins usage
touch-sensing channels availability xxxx-touch-lib 51/59 docid023933 rev 4 table 15. available touch sensing channels for stm32l15x 32k to 128k subfamily stm32l15x 32k to 128k packages lqfp48 / vfqfpn48 lqfp64 / bga64 lqfp100 / bga100 part numbers stm32l151c6 stm32l151c8 stm32l151cb stm32l152c6 stm32l152c8 stm32l152cb stm32l151r6 stm32l151r8 stm32l151rb stm32l152r6 stm32l152r8 stm32l152rb stm32l151v8 stm32l151vb stm32l152v8 stm32l152vb analog i/o group gx_ioy gpio pin number of available pins usage lqfp pin bga ball number of available pins usage lqfp pin bga ball number of available pins usage group 1 g1_io1 pa0 10 4 3 channels with 1 sampling capacitor 14 g2 4 3 channels with 1 sampling capacitor 23 l2 4 3 channels with 1 sampling capacitor g1_io2 pa1 11 15 h2 24 m2 g1_io3 pa2 12 16 f3 25 k3 g1_io4 pa3 13 17 g3 26 l3 group 2 g2_io1 pa6 16 2 1 channel with 1 sampling capacitor 22 g4 2 1 channel with 1 sampling capacitor 31 l4 2 1 channel with 1 sampling capacitor g2_io2 pa7 17 23 h4 32 m4 group 3 g3_io1 pb0 18 2 1 channel with 1 sampling capacitor 26 f5 2 1 channel with 1 sampling capacitor 35 m5 2 1 channel with 1 sampling capacitor g3_io2 pb1 19 27 g5 36 m6 group 4 g4_io1 pa8 29 3 2 channels with 1 sampling capacitor 41 d7 3 2 channels with 1 sampling capacitor 67 d11 3 2 channels with 1 sampling capacitor g4_io2 pa9 30 42 c7 68 d10 g4_io3 pa10 31 43 c6 69 c12 group 5 g5_io1 pa13 34 3 2 channels with 1 sampling capacitor 46 a8 3 2 channels with 1 sampling capacitor 72 a11 3 2 channels with 1 sampling capacitor g5_io2 pa14 37 49 a7 76 a10 g5_io3 pa15 38 50 a6 77 a9
touch-sensing channels availability xxxx-touch-lib 52/59 docid023933 rev 4 group 6 g6_io1 pb4 40 2 1 channel with 1 sampling capacitor 56 a4 2 1 channel with 1 sampling capacitor 90 a7 2 1 channel with 1 sampling capacitor g6_io2 pb5 41 57 c4 91 c5 group 7 g7_io1 pb12 25 4 3 channels with 1 sampling capacitor 33 h8 4 3 channels with 1 sampling capacitor 51 l12 4 3 channels with 1 sampling capacitor g7_io2 pb13 26 34 g8 52 k12 g7_io3 pb14 27 35 f8 53 k11 g7_io4 pb15 28 36 f7 54 k10 table 15. available touch sensing channels for stm32l15x 32k to 128k (continued) subfamily stm32l15x 32k to 128k packages lqfp48 / vfqfpn48 lqfp64 / bga64 lqfp100 / bga100 part numbers stm32l151c6 stm32l151c8 stm32l151cb stm32l152c6 stm32l152c8 stm32l152cb stm32l151r6 stm32l151r8 stm32l151rb stm32l152r6 stm32l152r8 stm32l152rb stm32l151v8 stm32l151vb stm32l152v8 stm32l152vb analog i/o group gx_ioy gpio pin number of available pins usage lqfp pin bga ball number of available pins usage lqfp pin bga ball number of available pins usage
touch-sensing channels availability xxxx-touch-lib 53/59 docid023933 rev 4 group 8 g8_io1 pc0 - 0 cannot be used for touch sensing 8e3 4/3 3/2 channels with 1 sampling capacitor 15 h1 4 3 channels with 1 sampling capacitor g8_io2 pc1 - 9 e2 16 j2 g8_io3 pc2 - 10 f2 17 j3 g8_io4 pc3 - 11 - 18 k2 group 9 g9_io1 pc4 - 0 24 h5 2 1 channel with 1 sampling capacitor 33 k5 2 1 channel with 1 sampling capacitor g9_io2 pc5 - 25 h6 34 l5 group 10 g10_io1 pc6 - 0 37 f6 4 3 channels with 1 sampling capacitor 63 e12 4 3 channels with 1 sampling capacitor g10_io2 pc7 - 38 e7 64 e11 g10_io3 pc8 - 39 e8 65 e10 g10_io4 pc9 - 40 d8 66 d12 maximum number of channels 13 channels with 7 sampling capacitors 20/19 channels with 10 sampling capacitors 20 channels with 10 sampling capacitors table 15. available touch sensing channels for stm32l15x 32k to 128k (continued) subfamily stm32l15x 32k to 128k packages lqfp48 / vfqfpn48 lqfp64 / bga64 lqfp100 / bga100 part numbers stm32l151c6 stm32l151c8 stm32l151cb stm32l152c6 stm32l152c8 stm32l152cb stm32l151r6 stm32l151r8 stm32l151rb stm32l152r6 stm32l152r8 stm32l152rb stm32l151v8 stm32l151vb stm32l152v8 stm32l152vb analog i/o group gx_ioy gpio pin number of available pins usage lqfp pin bga ball number of available pins usage lqfp pin bga ball number of available pins usage
memory footprin t xxxx-touch-lib 54/59 docid023933 rev 4 6 memory footprint the stmtouch driver memory footprint depends on the following parameters: ? acquisition principle (ct or pxs) ? c compiler and options: memory model, size or speed optimization ? number of capacitive sensing channels, ac quisition banks, sensor type (touchkey, linear or rotary). 6.1 stm8l the cosmic stm8 c compiler v4.3.6 has been used with the following command line options: +modsl0 -pxp +compact + split -pp table 19 shows the memory footprint taken by the stmtouch driver for different configurations. table 16. stm8l101 memory footprint with software acquisition mode (1) channels banks sensors rom (kbytes) ram (bytes) 3 2 3 tkeys ~5.3 ~160 1. the content of this table is pr ovided for information purposes only table 17. stm8l15x memory footprint with hardware acquisition mode (1) channels banks sensors rom (kbytes) ram (bytes) 1 1 1 tkey ~5.2 ~140 10 2 10 tkeys ~5.4 ~300 16 2 10 tkeys + 1 linear + 1 rotary ~7.4 ~450 1. the content of this table is pr ovided for information purposes only table 18. stm8l15x memory footprint with software acquisition mode (1) channels banks sensors rom (kbytes) ram (bytes) 1 1 1 tkey ~4.6 ~130 10 2 10 tkeys ~4.8 ~280 16 2 10 tkeys + 1 linear + 1 rotary ~6.9 ~430 1. the content of this table is pr ovided for information purposes only
docid023933 rev 4 55/59 xxxx-touch-lib memory footprint 58 6.2 stm8tl5x the cosmic stm8 c compiler v4.3.6 has been used with the following command line options: +modsl0 -pxp +compact + split -pp table 19 shows the memory footprint taken by the stmtouch driver for different configurations. 6.3 stm32f0xx the iar ansi c/c++ compiler v6.40.1 for arm ? has been used with the following command line options: optimization high-balanced table 20 shows the memory footprint taken by the stmtouch driver for different configurations. table 19. stm8tl5x memory footprint (1) 1. the content of this table is provided for information purposes only channels banks sensors rom (kbytes) ram (bytes) 1 1 1 touchkey ~4.3 ~70 3 1 3 touchkeys ~4.4 ~110 19 4 19 touchkeys ~4.7 ~440 26 6 16 linears-1ch 2 linears-5ch ~6.2 ~680 26 6 16 touchkeys 2 linears-5ch ~7.8 ~570 table 20. stm32f0xx memory footprint (1) 1. the content of this table is provided for information purposes only channels banks sensors rom (kbytes) ram (bytes) 3 3 3 touchkeys ~3.9 ~130 3 3 1 linear-3ch ~4.9 ~120 15 6 9 touchkeys 1 linear-3ch 1 rotary-3ch ~7.7 ~350
memory footprin t xxxx-touch-lib 56/59 docid023933 rev 4 6.4 stm32f3xx the iar ansi c/c++ compiler v6.40.1 for arm ? has been used with the following command line options: optimization high-balanced table 21 and table 22 show the memory footprint taken by the stmtouch driver for different configurations. table 21. stm32f30x memory footprint (1) 1. the content of this table is provided for information purposes only channels banks sensors rom (kbytes) ram (bytes) 2 2 2 tkeys ~3.2 ~120 table 22. stm32f37x memory footprint (1) 1. the content of this table is provided for information purposes only channels banks sensors rom (kbytes) ram (bytes) 3 3 3 tkeys ~3.3 ~140 3 3 1 linear-3ch ~4.3 ~130
docid023933 rev 4 57/59 xxxx-touch-lib memory footprint 58 6.5 stm32l1xx the iar ansi c/c++ compiler v6.30.1 for arm ? has been used with the following command line options: optimization high-balanced table 23 shows the memory footprint taken by the stmtouch driver using the hardware acquisition mode (using timers) on stm32l1xx high-density devices : table 24 shows the memory footprint taken by the stmtouch driver using the software acquisition mode on stm32l1xx medium-density devices : table 23. stm32l1xx memory footprint, example 1 (1) 1. the content of this table is provided for information purposes only channels banks sensors rom (kbytes) ram (bytes) 3 3 3 tkeys ~6.2 ~370 3 3 1 linear-3ch ~7.2 ~360 16 3 10 tkeys 1 linear-3ch 1 rotary-3ch ~9.1 ~630 table 24. stm32l1xx memory footprint, example 2 (1) 1. the content of this table is provided for information purposes only channels banks sensors rom (kbytes) ram (bytes) 2 2 2 tkeys ~5.2 ~400 3 3 1 linear-3ch ~6.2 ~420 16 3 10 tkeys 1 linear-3ch 1 rotary-3ch ~8.7 ~690
revision history xxxx-touch-lib 58/59 docid023933 rev 4 7 revision history table 25. document revision history date revision changes 21-dec-2012 1 initial release. 30-apr-2013 2 added support for stm32f3xx and stm32l1xx products. updated section 2: surface charge transfer (ct) acquisition principle . replaced everywhere in the document the single ordering code (old ordering code: stmtouch-lib) with multiple ordering codes (new ordering codes: xxxx-touch-lib). updated document title. added table 1: device summary . 03-sep-2013 3 added stm8l in section : description . updated section 2: surface charge transfer (ct) acquisition principle . updated section 3: stmtouch library architecture . updated table 2: list of peripherals used by the stmtouch driver . added package row in table 4: available touch-sensing channels for stm8l15x / stm8l16x (table 1/2) . added package row in table 5: available touch-sensing channels for stm8l15x / stm8l16x (table 2/2) . updated table 7: available touch sensing channels for stm32f042 . added section 5.1: stm8l . added section 6.1: stm8l . fixed footnote issues in table 9 , table 11 and ta ble 14 . 13-feb-2014 4 updated all channel tables of stm8l, stm32l and stm32f0 products. added stm32f042 channel table table 7: available touch sensing channels for stm32f042 added stm32l1xx 512k channel table table 11: available touch sensing channels for stm32l1xx 512k
docid023933 rev 4 59/59 xxxx-touch-lib 59 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. st products are not designed or authorized for use in: (a) safety critical applications such as life supporting, active implanted devices or systems wi th product functional safety requirements; (b) aeronautic applications; (c) automotive applications or environments, and/or (d) aerospace applications or environments. where st products are not designed for such use, the purchaser shall use products at purchaser?s sole risk, even if st has been informed in writing of such usage, unless a product is expressly designated by st as being intended for ?automotive, automotive safety or medical? industry domains according to st product design specifications. products formally escc, qml or jan qualified are deemed suitable for use in aerospace by the corresponding governmental agency. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2014 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of 32F0-TOUCH-LIB

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X